package demo01;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-04
 * Time: 21:49
 */
public class Test07 {
    public static void main(String[] args) {
        //.使用larnbda表达式实现多线程
        Thread t = new Thread( ()->{
            while (true) {
                System.out.println("多线程");
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        t.start();
    }
}
